﻿using Microsoft.VisualBasic.CompilerServices;
using Daemon.Infrustructure.EF;
using Daemon.Common.Helpers;
using Daemon.Repository.EF.Enums;
using Daemon.Model;
using Daemon.Repository.Contract;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;

namespace Daemon.Repository.EF
{
    public class AdminRoleRepository : Repository<AdminRole>, IAdminRoleRepository
    {
        protected override Expression<Func<AdminRole, int>> PrimaryKeyExpression => r => r.Id;

        public AdminRoleRepository(ApiDBContent context) : base(context)
        {
        }

        protected override void UpdateEntitiesAfterUpdate(IEnumerable<AdminRole> entities, ApiDBContent context)
        {
           
        }

        protected override IEnumerable<AdminRole> IncludeRelationships(IEnumerable<AdminRole> entities, ApiDBContent context)
        {
            return entities;
        }

        // private void UpdateUserRole(IEnumerable<AdminRole> entities)
        // {
        //     var 
        // }
    }
}
